package com.wave.traffic.enums;

/***
 * @Description 康耐德指令枚举
 * @Author chenjian
 * @Date 2022/9/16 15:08
 */
public enum NetControllerEnum {

    /**
     * 获取DI状态
     */
    READ_DI_COMMAND("000100000006FF0200C80004", "采集DI状态"),

    /**
     * 获取DO状态
     */
    READ_DO_COMMAND("000100000006FF0100640004", "采集DO状态"),

    /**
     * 闭合DO1
     */
    WRITE_DO1_OPEN_COMMAND("000100000006FF050064FF00", "闭合DO1"),

    /**
     * 断开DO1
     */
    WRITE_DO1_CLOSE_COMMAND("000100000006FF0500640000", "断开DO1"),


    /**
     * 闭合DO2
     */
    WRITE_DO2_OPEN_COMMAND("000100000006FF050065FF00", "闭合DO2"),

    /**
     * 断开DO2
     */
    WRITE_DO2_CLOSE_COMMAND("000100000006FF0500650000", "断开DO2"),


    /**
     * 闭合DO3
     */
    WRITE_DO3_OPEN_COMMAND("000100000006FF050066FF00", "闭合DO3"),

    /**
     * 断开DO3
     */
    WRITE_DO3_CLOSE_COMMAND("000100000006FF0500660000", "断开DO3"),


    /**
     * 闭合DO4
     */
    WRITE_DO4_OPEN_COMMAND("000100000006FF050067FF00", "闭合DO4"),

    /**
     * 断开DO4
     */
    WRITE_DO4_CLOSE_COMMAND("000100000006FF0500670000", "断开DO4");


    private String code;

    private String desc;

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getDesc() {
        return desc;
    }

    public void setDesc(String desc) {
        this.desc = desc;
    }

    NetControllerEnum(String code, String desc) {
        this.code = code;
        this.desc = desc;
    }
}
